<%@ import namespace="ent" %>
<script runat="server" language="C#">
	protected void Page_Init(Object sender, EventArgs e) {
		switch(ApplicationCommon.getRole(Session)) {
			case ApplicationCommon.enumRole.Administrator:
				plhRegionUser.Visible = true;
				plhRegionList.Visible = true;
				plhRegionContent.Visible = true;
				plhRegionFile.Visible = true;
				plhRegionApplication.Visible = true;
				liRegionContentTemplate.Visible = true;
				liRegionContentSystem.Visible = true;
				liRegionFileFilterExtension.Visible = true;
				break;
			case ApplicationCommon.enumRole.Moderator:
				plhRegionUser.Visible = false;
				plhRegionList.Visible = false;
				plhRegionContent.Visible = true;
				plhRegionFile.Visible = true;
				plhRegionApplication.Visible = true;
				liRegionContentTemplate.Visible = true;
				liRegionContentSystem.Visible = true;
				liRegionFileFilterExtension.Visible = true;
				break;
			case ApplicationCommon.enumRole.Author:
				plhRegionUser.Visible = false;
				plhRegionList.Visible = false;
				plhRegionContent.Visible = true;
				plhRegionFile.Visible = true;
				plhRegionApplication.Visible = false;
				liRegionContentTemplate.Visible = false;
				liRegionContentSystem.Visible = false;
				liRegionFileFilterExtension.Visible = false;
				break;
		}
	}
</script>
<%@ register src="~/shared/controlpanel_regionleft_directory.ascx" tagname="directory" tagprefix="region" %>
				<div id="region-left-menu">
					<p style="text-align:center;">.::: Control Panel :::.</p>
					<ul>
						<region:directory id="ucRegionDirectory" runat="server"/>
<asp:placeholder id="plhRegionUser" runat="server">
						<li class="header">User Management</li>
						<li><asp:hyperlink navigateurl="~/controlpanel/users_crud.aspx" runat="server"><span>Users</span></asp:hyperlink></li>
</asp:placeholder>
<asp:placeholder id="plhRegionList" runat="server">
						<li class="header">List Management</li>
						<li><asp:hyperlink navigateurl="~/controlpanel/list_items_crud.aspx?category=1" runat="server"><span>User Roles</span></asp:hyperlink></li>
						<li><asp:hyperlink navigateurl="~/controlpanel/list_items_crud.aspx?category=2" runat="server"><span>Post Types</span></asp:hyperlink></li>
						<li><asp:hyperlink navigateurl="~/controlpanel/list_items_crud.aspx?category=3" runat="server"><span>Post Statuses</span></asp:hyperlink></li>
						<li><asp:hyperlink navigateurl="~/controlpanel/list_items_crud.aspx?category=4" runat="server"><span>Post Order Types</span></asp:hyperlink></li>
						<li><asp:hyperlink navigateurl="~/controlpanel/list_items_crud.aspx?category=5" runat="server"><span>File Types</span></asp:hyperlink></li>
</asp:placeholder>
<asp:placeholder id="plhRegionContent" runat="server">
						<li class="header">Content Management</li>
						<li><asp:hyperlink navigateurl="~/controlpanel/contents_crud.aspx?type=1" runat="server"><span>Pages</span></asp:hyperlink></li>
						<li><asp:hyperlink navigateurl="~/controlpanel/contents_crud.aspx?type=2" runat="server"><span>Blogs</span></asp:hyperlink></li>
						<li><asp:hyperlink navigateurl="~/controlpanel/contents_crud.aspx?type=3" runat="server"><span>Posts</span></asp:hyperlink></li>
						<li id="liRegionContentTemplate" runat="server"><asp:hyperlink navigateurl="~/controlpanel/contents_crud.aspx?type=4" runat="server"><span>Templates</span></asp:hyperlink></li>
						<li><asp:hyperlink navigateurl="~/controlpanel/contents_crud.aspx?type=5" runat="server"><span>Styles</span></asp:hyperlink></li>
						<li id="liRegionContentSystem" runat="server"><asp:hyperlink navigateurl="~/controlpanel/contents_crud.aspx?type=6" runat="server"><span>System Scripts</span></asp:hyperlink></li>
</asp:placeholder>
<asp:placeholder id="plhRegionFile" runat="server">
						<li class="header">File Management</li>
						<li><asp:hyperlink navigateurl="~/controlpanel/files_crud.aspx" runat="server"><span>Files</span></asp:hyperlink></li>
						<li id="liRegionFileFilterExtension" runat="server"><asp:hyperlink navigateurl="~/controlpanel/file_filter_extensions_crud.aspx" runat="server"><span>Filter Extensions</span></asp:hyperlink></li>
</asp:placeholder>
<asp:placeholder id="plhRegionApplication" runat="server">
						<li class="header">Application Management</li>
						<li style="display:none;"><asp:hyperlink navigateurl="~/controlpanel/email_mass.aspx" runat="server"><span>Mass Email</span></asp:hyperlink></li>
						<li><asp:hyperlink navigateurl="~/controlpanel/email_list.aspx" runat="server"><span>Email List</span></asp:hyperlink></li>
</asp:placeholder>
					</ul>
				</div>